home *** CD-ROM | disk | FTP | other *** search
/ Software USA 4 #11 / Software USA Volume 4.11.iso / mac / Educational / mac06 / usr / include / signal.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-01-03  |  1.1 KB  |  39 lines  |  [TEXT/SPM ]

  1. /* mac06©1997,98 by HNS/DSITRI hns@computer.org
  2. ** signal.h
  3. */
  4.  
  5. #pragma once
  6.  
  7. typedef void (*__SIGFUNCP)(long);
  8.  
  9. #define SIG_DFL        ((__SIGFUNCP) 0)    /* default */
  10. #define SIG_ERR        ((__SIGFUNCP) -1)    /* error */
  11. #define SIG_IGN        ((__SIGFUNCP) 1)    /* ignore */
  12.  
  13. #define SIGHUP        1        /* connection to controlling terminal is lost */
  14. #define SIGINT        2        /* user interrupt */
  15. #define SIGQUIT        3        /* user quit */
  16. #define SIGABRT        3        /* user abort */
  17. #define SIGILL        4        /* illegal instruction */
  18. #define SIGTRAP        5        /* trap instruction */
  19. #define SIGFPE        8        /* floating point exception */
  20. #define SIGKILL        9        /* kill process */
  21. #define SIGSEGV        11        /* address error */
  22. #define SIGSYS        12        /* invalid system call argument */
  23. #define SIGPIPE        13        /* pipe reading process has terminated */
  24. #define SIGALRM        14        /* timeout of alarm() system call */
  25. #define SIGTERM        15        /* default request to terminate */
  26. #define SIGCHLD        16
  27. #define SIGCONT        17
  28. #define SIGSTOP        18
  29. #define SIGTSTP        19
  30. #define SIGTTIN        20
  31. #define SIGTTOU        21
  32. #define SIGUSR1        22
  33. #define SIGUSR2        23
  34.  
  35. int kill(int pid, int sig);
  36. #define raise(S) kill((S), getpid())
  37. __SIGFUNCP signal(int sig, __SIGFUNCP proc);
  38.  
  39. /* EOF */